import Vue from 'vue'
import VueRouter from 'vue-router'
import HomeView from '../views/HomeView.vue'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'home',
    component: HomeView,
    children: [

      {
        path: "/login",
        component: () => import('../views/home/LoginView')
      },
      {
        path: "/index",
        component: () => import('../views/home/IndexView.vue')
      },
      {
        path: "/lol",
        component: () => import('../views/home/LolView.vue')
      },
      {
        path: "/chuan",
        component: () => import('../views/home/ChuanView.vue')
      },
      {
        path: "/yu",
        component: () => import('../views/home/YuView.vue')
      },
      {
        path: "/apex",
        component: () => import('../views/home/APEXView.vue')
      },
      {
        path: "/ji",
        component: () => import('../views/home/JiView.vue')
      },
      {
        path: "/te",
        component: () => import('../views/home/TeView.vue')
      },
      {
        path: "/detail",
        component: () => import('../views/home/DetailView')
      },
      {
        path: "/list",
        component: () => import('../views/home/ListView')
      },
      {
        path: "/index1",
        component: () => import('../views/home/Index1')
      },
      {
        path: "/personal",
        component: () => import('../views/home/PersonalView')
      },
      {
        path: "/order",
        component: () => import('../views/home/OrderView')
      },
    ]
  },
  {
    path: "/reg",
    component: () => import('../views/RegView')
  },
]

const router = new VueRouter({
  mode: 'history',
  base: process.env.BASE_URL,
  routes
})

export default router
